﻿@using StudyEnglish.Application.Service
@model StudyEnglish.Model.File
@{
    var types = AppService.GetDictTypes();
}


                <h4>
                    @Model.InitialFileName
                </h4>
                @foreach (var type in types)
                {
                    var items = Model.RelatedDictionaryItems.Where(x => x.DictType == type).ToList();
                    foreach (var item in items)
                    {
                    <span class="label label-info" style="margin-right: 5px">
                        @item.Name
                    </span>
                    }
                }
                <span class="inline right">
                <a href="@Url.Action("PreviewFile", "Files", new { id = Model.Id }, null)"><i class="icon-download-alt">
                                                                                           </i></a>
                                                                                           </span>





